package com.javaenzk.wfx.manager.service;

import com.javaenzk.wfx.manager.dao.TbImagesDAO;
import com.javaenzk.wfx.manager.po.TbImages;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ImagesServiceImpl implements  Iimageservice {

    @Autowired
    private TbImagesDAO tbImagesDAO;

    @Override
    public void save(TbImages tbImages) throws Exception {
        tbImagesDAO.saveImage(tbImages);
    }

    @Override
    public TbImages queryImagesByMd5AndType(String md5, String type) throws Exception {
        return tbImagesDAO.queryImagesByMD5AndType(md5,type);
    }

    @Override
    public void updateImages(String imageurl, String enable, String type) {
        tbImagesDAO.uodateImages(imageurl,enable,type);
    }


}
